<?php include('functions.php'); ?>
<html>
<head>
<title>oPanel V<?php echo $ver; ?></title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet"href="style.css">
<?php
$dir = $_GET['dir']; // get the file
$file = basename($dir); // get just the file name
?>
</head>
<body>
<font class=med><img src="images/i-regular.gif"> <b><font size=+1><?php echo "$file"; ?></font></b>
<br>File Type: PHP script text

<br><hr><pre>
<?php
$fp = fopen($dir, 'rb');
fpassthru($fp);
?>
</pre></font>
<div style="position: absolute; width: 264px; height: 17px; z-index: 1; vertical-align: baseline; left:10px" id="credits">
oPanel V<?php echo $ver; ?> by <a href="http://olliespage.net/" target ="_blank">OlliesPage.net</a></div>
<div style="position: absolute; width: 500px; height: 17px; z-index: 1; vertical-align: baseline; right: 19px; text-align: right" id="BetaTesters">
BETA testers: <?php echo $BETAtesters; ?></div>
</body>
</html>